package com.qpx.jxcmessage.topic;


import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "Topic-queue2")
@Component(value = "topic222")
@Slf4j
public class Consumer2 {

    @RabbitHandler
    public void getMessage(String message){
        log.info("Topic-queue2--------------:" + message);

    }
}
